import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/login',
    name: 'login',
      
  },
  {
    path: '/login',
    name: 'login',
    component: () => import( '../views/LoginView.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import( '../views/HomeView.vue')
  },
  {
    path: '/shoplib',
    name: 'shoplib',
    component: () => import('../views/Shoplib.vue')
  },
  {
    path: '/intnetshop',
    name: 'intnetshop',
    component: () => import( '../views/Intnetshop.vue')
  },
  {
    path: '/shopclassify',
    name: 'shopclassify',
    component: () => import( '../views/Shopclassify.vue')
  },
  {
    path: '/ordersearch',
    name: 'ordersearch',
    component: () => import( '../views/Ordersearch.vue')
  },
  {
    path: '/waitforsend',
    name: 'waitforsend',
    component: () => import( '../views/Waitforsend.vue')
  },
  {
    path: '/comeself',
    name: 'comeself',
    component: () => import( '../views/Comeself.vue')
  },
  {
    path: '/mymoney',
    name: 'mymoney',
    component: () => import( '../views/Mymoney.vue')
  },
  {
    path: '/moneydetail',
    name: 'moneydetail',
    component: () => import( '../views/Moneydetail.vue')
  },
  {
    path: '/checkmoney',
    name: 'checkmoney',
    component: () => import( '../views/Checkmoney.vue')
  },
  {
    path: '/checkmoneydetail',
    name: 'checkmoneydetail',
    component: () => import( '../views/Checkmoneydetail.vue')
  },
  {
    path: '/clientsearch',
    name: 'clientsearch',
    component: () => import( '../views/Clientsearch.vue')
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
